<extend name="Base:block" />
<block name="title"><title>添加菜单</title></block>
<block name="seo"></block>
<block name="operation_nav">
    <ul class="operation_nav">
        <li class="none"><a href="{:U('Admin/Menu/add')}">添加菜单</a></li>
        <li class="none"><a href="{:U('Admin/Menu/index')}">后台菜单列表</a></li>  
    </ul>   
</block>
<block name="main_content">
    <form method="post" class="form-horizontal" action="__SELF__">
        <div class="form-group"><label class="col-sm-2 control-label">菜单名称</label>
            <div class="col-sm-4"><input type="text" name="name" class="form-control"></div>
        </div>
        <div class="form-group"><label class="col-sm-2 control-label">上级菜单</label>

            <div class="col-sm-4">
                <select class="form-control m-b" name="parent">
                    <option value="0">顶级菜单</option>
                    <volist name="menuArr" id="vo">
                        <option value="{$vo.id}">{$vo.title_show}</option>
                    </volist>
                </select>
            </div>
        </div>
        <div class="form-group"><label class="col-sm-2 control-label">菜单URL</label>
            <div class="col-sm-4"><input type="text" name="url" class="form-control"></div>
        </div>
        <div class="form-group"><label class="col-sm-2 control-label">菜单说明</label>
            <div class="col-sm-4"><input type="text" name="description" class="form-control"></div>
        </div>
        <div class="form-group"><label class="col-sm-2 control-label">菜单排序</label>
            <div class="col-sm-2"><input type="text"  name="sort"  value="0" class="form-control"></div>
        </div>
        <div class="form-group"><label class="col-sm-2 control-label">是否隐藏</label>

            <div class="col-sm-10">
              
                <div class="radio i-checks"><label> 
                    <input type="radio" checked="" value="1" name="status"> <i></i>是</label>
                </div>
                <div class="radio i-checks"><label> 
                    <input type="radio" checked="" value="0" name="status"> <i></i>否</label>
                </div>
            </div>
        </div>
        <div class="form-group"><label class="col-sm-2 control-label">菜单类型</label>

            <div class="col-sm-3">
                <select class="form-control m-b" name="type">
                    <option value="1">菜单+权限</option>
                    <option value="0">普通菜单</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-4 col-sm-offset-2">
                <button class="btn btn-primary" type="submit">保存</button>
                <button class="btn btn-white" type="submit">返回</button>
            </div>
        </div>
    </form>
</block>
